package com.ureport.test.model;

import lombok.*;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author 尚智江
 * @description
 * @CreateDate 2023/11/30 15:51
 */

@Data
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private Integer id;
    private String name;
    private Integer age;

    public List<User> getUserList(){
//        User user = new User(1,"a",2);
        List<User> userList = new ArrayList<>();
        userList.add(new User(1,"a",1));
        userList.add(new User(2,"a",2));
        userList.add(new User(3,"a",3));
        userList.add(new User(4,"a",4));
        userList.add(new User(5,"a",5));
        userList.add(new User(6,"a",6));
        userList.add(new User(7,"a",7));
        userList.add(new User(8,"a",8));
        userList.add(new User(9,"a",9));
        return userList;
    }
}
